package com.amazon.service;

import com.amazon.bo.BrowseTree;
import com.amazon.dao.BrowseTreeDao;
import com.amazon.web.util.Send253SMS;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("browseTreeService")
public class BrowseTreeService {
    @Resource
    private BrowseTreeDao browseTreeDao;
    @Resource
    private SMSCodeService smsCodeService;
    @Resource
    private Send253SMS send253SMS;
    @Resource
    I18nService i18nService;
    //供应链产品列表
    public List<BrowseTree> getBrowseTreeList(String conn, final int page, final int pageSize){
        return browseTreeDao.getBrowseTreeList(conn,page,pageSize);
    }
    public boolean update(BrowseTree b){
        return browseTreeDao.saveChPath(b);
    }
    public int getBrowseTreeCount(String conn) {
        return browseTreeDao.getTotalCount(BrowseTree.class,conn);
    }

    public BrowseTree getAmazonInfoByEnid(String en){
        return browseTreeDao.getAmazonInfoByEnid(en);
    }
}
